package com.sg.model.base.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import lombok.experimental.Accessors;

import com.sg.framework.common.po.BaseEntity;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;
import java.io.Serial;
import java.util.Date;

/**
 * 无空间 无应用
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_framework_space")  //1-2-04空间表
public class Space implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 空间ID
     */
    @TableId(value = "space_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "spaceId不能为空")
    private String spaceId;
    /**
     * 空间标识
     */
    @TableField(value = "space_code")
    @NotNull(message = "空间标识不能为空")
    @Schema(description = "空间标识")
    private String spaceCode;
    /**
     * 空间编号
     */
    @TableField(value = "organization_number")
    @NotNull(message = "空间编号不能为空")
    @Schema(description = "空间编号")
    private String organizationNumber;
    /**
     * 空间名称
     */
    @TableField(value = "space_name")
    @NotNull(message = "空间名称不能为空")
    @Schema(description = "空间名称")
    private String spaceName;
    /**
     * 空间简称
     */
    @TableField(value = "abbreviation")
    @NotNull(message = "空间简称不能为空")
    @Schema(description = "空间简称")
    private String abbreviation;
    /**
     * 头像logo
     */
    @TableField(value = "space_logo")
    @NotNull(message = "头像logo不能为空")
    @Schema(description = "头像logo")
    private String spaceLogo;
    /**
     * 版权信息
     */
    @TableField(value = "space_copy_right")
    @Schema(description = "版权信息")
    private String spaceCopyRight;
    /**
     * 是否是平台 TRUE:是 FALSE:否
     */
    @TableField(value = "platform_type")
    @NotNull(message = "是否是平台不能为空")
    @Schema(description = "是否是平台")
    private String platformType;
    /**
     * 是否失效 TRUE:是 FALSE:否
     */
    @TableField(value = "is_invalid")
    @NotNull(message = "是否失效不能为空")
    @Schema(description = "是否失效")
    private String isInvalid;

    /**
     * 失效类型 FREEZE:冻结 OTHER:其他
     */
    @TableField(value = "invalid_type")
    @Schema(description = "失效类型")
    private String invalidType;
    /**
     * 失效原因
     */
    @TableField(value = "is_invalid_reason")
    @Schema(description = "失效原因")
    private String isInvalidReason;
    /**
     * 失效时间
     */
    @TableField(value = "is_invalid_time")
    @Schema(description = "失效时间")
    private Date isInvalidTime;
    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     * 隶属场景id
     */
    @TableField(value = "subjection_scene_id")
    @NotNull(message = "隶属场景id不能为空")
    @Schema(description = "隶属场景id")
    private String subjectionSceneId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 隶属联盟应用ID
     */
    @TableField(value = "subjection_app_id")
    @Schema(description = "隶属联盟应用ID")
    private String subjectionAppId;
    /**
     * 创建于空间ID
     */
    @TableField(value = "ascription_space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String ascriptionSpaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
